package edu.umd.ion.wavemeter.server;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@SuppressWarnings("serial")
@Entity(name = "ExposureParameters") //Name of the entity
public class PersistentExposureParameters implements Serializable {
	@Id //signifies the primary key
	@Column(name = "id", nullable = false)
	protected Integer id;

	@Column(name="upd_date")
	protected Date UpdateDate;
	
	protected long UnderexposedTimeout = 30000;
	
	public Integer getPrimaryKey() {
		return id;
	}
	
	public void set(PersistentExposureParameters e) {
		UpdateDate = e.UpdateDate;
	}

	public Date getUpdateDate() {
		return UpdateDate;
	}

	public void setUpdateDate(Date updateDate) {
		UpdateDate = updateDate;
	}	
}
